<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec"
	uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>节点著录定义</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<jsp:include
	page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/cbb/techclass/tabledefine/commtablemanager/table_record_select_structur.js"></script>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/cbb/techclass/tabledefine/commtablemanager/locale/language_<%=languageCode%>.js"></script>
<script type="text/javascript">
var baseurl = "<%=ViewUtil.getRequestPath(request)%>";
var dialogId = "${dialogId}"; // 当前对话框的ID
var sysId = "<%=request.getParameter("sysId")%>";//表Id
var tableName = "<%=request.getParameter("tableName")%>";//表名

//SanXiaFiles Create By Tangkun start
function getResultByInput(){
	$('#cbbTabColumnsDataGrid').datagrid({
		url : 'platform/aos/commtablemanagerController/getCbbTabColumnsData.json?sysId=' + sysId + '&tableName=' + tableName + '&isTemplet=' + isTemplet
				+ '&colName=colName&colLabel=colLabel&colType=colType&inputWord=' + encodeURI(encodeURI($('#query').val()))
	});
}
// SanXiaFiles Create By Tangkun End
</script>
<style type="text/css">
.textbox {
	border: solid 1px #a5acb5;
}

.input,img {
	vertical-align: middle;
}

<!--
实现input和img水平对齐 -->.labelbg {
	background:
		url('../../js/jQuery/jquery-easyui-1.3.5/themes/icons/required.gif')
		right 0 no-repeat;
}
</style>
</head>
<body id="myBody" class="easyui-layout">
	<div data-options="region:'center'" fit = "true" style="height: 0; overflow: hidden; font-size: 0;">
		<table id="lantopTableDatagrid" class="easyui-datagrid"
			data-options="
										rownumbers: true,
										animate: false,
										collapsible: false,
										fitColumns: true,
										autoRowHeight: false,
										singleSelect: true,
										pagination:true,
										pageSize:100, 
										pageList:[100,150,200], 
							    		striped:true,
										fit:true,
										method: 'post',
										url:'platform/aos/commtablemanagerController/getCbbTabColumnsData?sysId='+sysId+'&tableName='+tableName+'&isTemplet=N'
									">
			<thead>
				<tr>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colLabel">
						<%-- 字段中文名 --%>
						<th
							data-options="field:'colLabel',halign:'center', align:'center', editor:{type:'text'}"
							width="100" title="字段英文名"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colLabel","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colName">
						<%-- 字段名 --%>
						<th
							data-options="field:'colName', halign:'center', align:'center', editor:{type:'text'}"
							width="100" title="字段名"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colName","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colType">
						<%-- 字段类型 --%>
						<th
							data-options="field:'colType', halign:'center', align:'center', editor:{type:'combobox',options:{'validType':'length[0,50]',required:true,panelHeight: 'auto',valueField:'lookupCode',textField:'lookupName',data:[{lookupCode:'string',lookupName:'字符串'},{lookupCode:'integer',lookupName:'整型'},{lookupCode:'date',lookupName:'日期时间型'}],editable:false}},formatter:fomaterColType"
							width="100" title="字段类型"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colType","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colLength">
						<%-- 长度 --%>
						<th
							data-options="field:'colLength', halign:'center', align:'center', editor:{type:'numberbox',options:{'validType':'length[0,4000]'}}"
							width="100" title="长度"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colLength","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colDecimal">
						<%-- 小数位数 --%>
						<th
							data-options="field:'colDecimal', halign:'center', align:'center', editor:{type:'numberbox'}"
							width="100" title="小数位数"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colDecimal","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colIsSys">
						<%-- 系统字段 --%>
						<th
							data-options="field:'colIsSys', halign:'center', align:'center',formatter:fomaterYn"
							width="100" title="系统字段"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colIsSys","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colIsMust">
						<%-- 是否必著 --%>
						<th
							data-options="field:'colIsMust', halign:'center', align:'center',formatter:fomaterYn"
							width="100" title="是否必著"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colIsMust","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_colOrder">
						<%-- 顺序 --%>
						<th
							data-options="field:'colOrder', halign:'center', align:'center',editor:{type:'numberbox'}"
							width="100" title="顺序"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.colOrder","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3"
						domainObject="commtablemanager_table_structure_datagrid_remark">
						<%-- 备注 --%>
						<th
							data-options="field:'remark', halign:'center', align:'center', editor:{type:'text'}"
							width="100" title="备注"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.Definitionofnodedescription.viewstructure.remark","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
				
				</tr>
			</thead>
		</table>
	</div>
</body>
</html>
